package com.dc.controller;

import com.dc.common.ResponseResultVO;
import com.dc.service.HomeScreenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "运维平台-大屏")
@RestController
@RequestMapping("/homeScreen")
public class HomeScreenController {

    @Resource
    private HomeScreenService homeScreenService;

    @ApiOperation(value = "模拟触发设备报警", notes = "模拟触发设备报警")
    @GetMapping("/analogAlarm")
    public ResponseResultVO analogAlarm() {
        return homeScreenService.analogAlarm();
    }

    @ApiOperation(value = "设备数量统计", notes = "设备数量统计")
    @GetMapping("/deviceNumberStatistical")
    public ResponseResultVO deviceNumberStatistical() {
        return homeScreenService.deviceNumberStatistical();
    }


}
